package com.fcgzs.order.feign;

import com.fcgzs.entity.PageResult;
import com.fcgzs.entity.Result;
import com.fcgzs.order.pojo.Order;
import com.fcgzs.order.pojo.PayLog;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.*;

import java.util.List;

/****
 * @Author:ujiuye
 * @Description:
 * @Date 2021/2/1 14:19
 *****/
@FeignClient(value="ORDER")
public interface OrderFeign {

    @GetMapping("/order/findPayLogFromRedis/{userId}")
    public Result<PayLog> findPayLogFromRedis(@PathVariable(name = "userId") String userId);


    @PutMapping("/order/updateStatus/{out_trade_no}/{transaction_id}")
    public Result updateStatus(@PathVariable(name = "out_trade_no") String out_trade_no,@PathVariable(name = "transaction_id") String transaction_id);
}